package xyz.hujf.otherbase;

/**
 * @author Hujf
 * @title: ThreadNotSafe
 * @date 2021-04-2310:42
 * @description: TODO
 */
public class ThreadNotSafe {
    private volatile int value;


    public synchronized int getValue() {
        return value;
    }

    public synchronized void setValue(int value) {
        this.value = value;
    }



}
